<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>块级元素</title>
    <style>
        /*div、p、ul、li、h、ol、dl、dd、dt，能够设置宽高，如果不设置会自动撑满，独占一行*/
        div{
            width: 300px;
            height: 200px;
            background-color: blue;
        }
        ul{
            width: 200px;
            width: 100px;
            background-color: orange;
        }
    </style>
</head>

<body>
    <div>
        div是块级元素
    </div>
    <ul>
        <li>li是块级元素</li>
        <li>li是块级元素</li>
        <li>li是块级元素</li>
    </ul>
</body>

</html>